﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExamplePage.aspx.cs" Inherits="ExamplePage" %>
<%@ Register TagPrefix="webdiyer" Namespace="Webplus.Webdiyer" Assembly="AspNetPager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
   <div id="search_panel">
            <table cellspacing="0" cellpadding="0" width="100%" class="tab_st">
                <tr>
                    <td width="100%" colspan="2" class="row_st_title">
                        查询
                    </td>
                </tr>
                <tr class="row_st">
                    <td width="20%" class="form_field">
                        用户名：
                    </td>
                    <td width="80%">
                        <asp:TextBox ID="txbUserName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr class="row_st">
                    <td class="form_field">
                        查询条件：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSearchType" runat="server">
                            <asp:ListItem Selected="True" Value="1">男</asp:ListItem>
                            <asp:ListItem Value="0">女</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr class="row_st">
                    <td class="form_field">
                        查询时间段：
                    </td>
                    <td>
                        <asp:TextBox ID="tbx_StartDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'1900-01-01',maxDate:'2100-12-20'})"
						    runat="server" CssClass="Wdate" Width="155"></asp:TextBox>
					    —<asp:TextBox ID="tbx_EndDate" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'1900-01-01',maxDate:'2100-12-20'})"
						    runat="server" CssClass="Wdate" Width="155"></asp:TextBox>
                    </td>
                </tr>
                <tr class="row_st">
                    <td class="form_field">
                    </td>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="确认查询" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="data_panel">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                Width="100%" 
                OnSorting="GridView1_Sorting" GridLines="None" BorderStyle="None" CellPadding="0"
                CssClass="tab_st" HeaderStyle-CssClass="tab_head">
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="ID" SortExpression="id"
                        ItemStyle-HorizontalAlign="Center" >
                        <HeaderStyle CssClass="a_yellow" />
                        <ItemStyle CssClass="g_w80" Wrap="True" />
                      
                    </asp:BoundField>
                    <asp:BoundField DataField="username" HeaderText="用户名" SortExpression="username"
                        ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle CssClass="a_yellow" />
                        <ItemStyle CssClass="g_w80" Wrap="True" />
                     
                    </asp:BoundField>
                  
                    <asp:BoundField DataField="sex" HeaderText="性别" SortExpression="sex" ItemStyle-HorizontalAlign="Center"
                        Visible="false">
                        <HeaderStyle CssClass="a_yellow" />
                        <ItemStyle CssClass="g_w80" Wrap="True" />
                       
                    </asp:BoundField>
                   
                    <asp:BoundField DataField="height" HeaderText="身高" SortExpression="height" ItemStyle-HorizontalAlign="Center"
                        Visible="false">
                        <HeaderStyle CssClass="a_yellow" />
                        <ItemStyle CssClass="g_w80" Wrap="True" />
                       
                    </asp:BoundField>
                    <asp:BoundField DataField="age" HeaderText="年龄" SortExpression="age" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle CssClass="a_yellow" />
                        <ItemStyle CssClass="g_w80" Wrap="True" />
                    </asp:BoundField>
                    <asp:BoundField DataField="schoolname" HeaderText="学校名称" SortExpression="schoolname" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle CssClass="a_yellow" />
                        <ItemStyle CssClass="g_w80" Wrap="True" />
                        
                    </asp:BoundField>
                     <asp:BoundField DataField="begintime" HeaderText="时间" SortExpression="begintime" ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle CssClass="a_yellow" />
                        <ItemStyle CssClass="g_w80" Wrap="True" />
                        
                    </asp:BoundField>
                    
                </Columns>
                <HeaderStyle CssClass="tab_head"></HeaderStyle>
            </asp:GridView>
        </div>
        <div id="page_line">
            <webdiyer:AspNetPager ID="AspNetPager1" Width="100%" runat="server" PageSize="10"
                PageIndexBoxType="DropDownList" ShowPageIndexBox="Always" TextBeforePageIndexBox="跳到第 "
                TextAfterPageIndexBox="页" EnableTheming="True" HorizontalAlign="Right" CustomInfoHTML="第%CurrentPageIndex%页/共%PageCount%页 共%RecordCount%条 每页%PageSize%条"
                ShowCustomInfoSection="Left" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                PrevPageText="上一页" OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>
